$(function(){
	var Owidth = $(document).width();
	$('html').css('font-size', Owidth / 10 + 'px');
	$(document).click(function() {
			$('.wx_hint').hide();
			$('.shadow').hide();
		});
	downloadApp();
	function downloadApp() {
			var u = navigator.userAgent;
			var ua = navigator.userAgent.toLowerCase();
			var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端 
			var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端 
			if(ua.match(/MicroMessenger/i) == "micromessenger") { //微信内置浏览器
					//window.location.href = "success1";

			} else {
				if(isiOS) {
						window.location.href = 'https://www.apicloud.com/getIpa/ba6ca6cc04ddac91db1644995b14dd7f'
					
				} else if(isAndroid) {
						window.location.href = 'http://downloadpkg.apicloud.com/app/download?path=http://7zzc70.com1.z0.glb.clouddn.com/781d7569b599bc521802c30abf13788b_d&ver=0.0.0&size=3.17M'
				} 

			}

		}
})